<template>
  <div>
    <div
      class="header-fixed"
    >
      <router-link to="/emp">
        <div class="iconfont header-fixed-back">&#xe624;</div>
      </router-link>
      {{title}}
    </div>
  </div>
</template>

<script>
  export default {
    name: "commonHeader",
    props: ['title'],
    data() {
      return {
      }
    },
  }
</script>

<style lang="stylus" scoped>
  @import "~styles/varibles.styl"
  .header-fixed
    z-index 2
    position relative
    top 0
    left 0
    right 0
    height: $headerHeight
    line-height $headerHeight
    text-align center
    color white
    background $bgColor
    font-size .32rem
    .header-fixed-back
      position absolute
      top 0
      left 0
      width: .64rem
      text-align center
      font-size .4rem
      color white


</style>
